package logic.impl;

import java.util.Properties;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import logic.LogicElementInterface;
import model.AddressBookWrapper;

/**
 * 
 * some common functionality for logic modules
 * 
 */
public abstract class LogicElementBaseClass implements LogicElementInterface {

	private AddressBookWrapper addressBook;
	private Properties resolverProperties;
	
	protected Log log;
	
	public void init(Properties resolverProperties) {};
	
	public LogicElementBaseClass() {
		addressBook = null;
		log = LogFactory.getLog(this.getClass().getCanonicalName());
	}
	
	public AddressBookWrapper getAddressBook() {
		return addressBook;
	}

	public void setAddressBook(AddressBookWrapper abook) {
		addressBook = abook;
	}

	public Properties getResolverProperties() {
		return resolverProperties;
	}

	public void setResolverProperties(Properties resolverProperties) {
		this.resolverProperties = resolverProperties;
	}
	
}